import { WinMessageBase } from './win-message-base.service';

/**
 * window.postMessage封装
 *
 * @author chitanda
 * @date 2021-06-06 16:06:38
 * @export
 * @class WinMessage
 * @extends {WinMessageBase}
 */
export class WinMessage extends WinMessageBase {
    private static readonly instance = new WinMessage();
    constructor() {
        if (WinMessage.instance) {
            return WinMessage.instance;
        }
        super();
    }
}
// 导出默认实例
export const winMsg = new WinMessage();
